package homework;

import java.util.Scanner;

public class practicd5 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入要录入的商品总类型数量：");
        int number = scan.nextInt();
        String[] name = new String[number];
        int[] shuliang = new int[number];
        double[] jiage = new double[number];

        for (int i = 0; i < name.length; i++) {
            System.out.println("请录入第"+(i+1)+"件商品的名称：");
            name[i] = scan.next();
            System.out.println("请录入第"+(i+1)+"件商品的数量：");
            shuliang[i] = scan.nextInt();
            System.out.println("请录入第"+(i+1)+"件商品的单价：");
            jiage[i] = scan.nextDouble();
            System.out.println("第"+(i+1)+"件商品录入成功！");

        }

    }
}
